package com.beta.admin.request.admin;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by vector on 2016/12/30.
 */
@Getter
@Setter
public class AdminRequest {

    @NotBlank
    private String username;

    @Email
    private String email;

    @NotBlank
    private String password;

    @NotBlank
    private String passwordConfirmation;

    @NotNull
    private Integer roleId;

    @NotBlank
    private String cityCode;

    private String cityName;

}
